package com.lry.basic.jvm.constantPool;


public class TestString {
//        final String s = "hello";//hello
//        final String ss = " world";// world
//        String s = "hello";//hello
//        String ss = " world";// world
//        String sss = s+ss;//没有hello world
//        String s1 = new String("a")+ new String("b");//a ,b,没有ab
//        String s2 = "a2"+"a22"+"a222";//a2a22a222
//        String s3 = new String("a3"+"a33"+"a333");//a3a33a333

     String s = "hello";
     String ss = s+" world";
     //hello, world

//    final String s = "hello";
//    String ss = s+" world";
    //hello,hello world


//    final String s = "hello";
//    String s1 = " world";
//    String ss = s+s1;

//       StringBuilder sb = new StringBuilder().append("hello").append("world");




}
